package com.yuanzi.base.enums;

import java.util.HashMap;
import java.util.Map;


public enum UserSourceType {

	PLATFORM(1, "PLATFORM"), 
	WEIXIN(2, "WEIXIN"),
	QQ(3, "QQ"),
	WX_MINI_PROG(3, "WX_MINI_PROG");

	private Integer value;
	private String displayName;
	
	public static Map<Integer, UserSourceType> valueMap = new HashMap<Integer, UserSourceType>();
	 static {
	        for (UserSourceType item : UserSourceType.values()) {
	            valueMap.put(item.value, item);
	        }
	    }
	 
	 public static Map<String, UserSourceType> displayMap = new HashMap<String, UserSourceType>();
	 static {
	        for (UserSourceType item : UserSourceType.values()) {
	        	displayMap.put(item.displayName, item);
	        }
	    }

	UserSourceType(Integer value, String displayName) {
		this.value = value;
		this.displayName = displayName;
	}

	public String getDisplayName() {
		return displayName;
	}

	public Integer getValue() {
		return value;
	}
}
